-
-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add SchemeSupported to the OpenURI portal #1203
Conversation
I think this change as it is, is a bit incomplete. If an app/client is supposed to call this API, it needs to be added to the |
@xhorak also please squash your commits or split it to reasonable parts and remove the merge commit. |
@matthiasclasen Could you please check this one? |
This needs a rebase. Also, see #1375. You will have to bump version to 5. Also at the top of the XML file there is a sentence I also wonder whether this shouldn't be more generic, e.g. looking at #1313, this will make Also, |
Also, maybe this can be permission based? To address @matthiasclasen concerns? Like, first ask will popup a permission dialog, to ask whether you want to allow given application access to this information, store it for this app (app_id) and have all the following ones without any permission dialog needed in case the permission has been granted already? That would mean using the generic Access portal for this. |
@matthiasclasen we need to move forward with this. Please set some reviewer or check the PR on your own. |
Seems perfectly reasonable. What are the concerns about exposing this by default (i.e. not gated behind some permission)? The xml still has to be adjusted and a test would be nice, as pointed out by @grulja. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You also need to squash all the commits into one.
I think the test is failing because you need to also bump the version in the test file. Still better would be to not just bump it, but also wrote a simple test. |
Looking at the tests, they seems to be mostly implemented by libportal. Maybe we could add more when the libportal adds SchemeSupported implementation? |
You can make a simple sync DBus call there. |
fba4ed6
to
e9010c7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I'm not an expert to GLib, but it looks sane to me.
NIT: still missing to bump the version in the xml file
In the file |
Otherwise this LGTM! |
Oh sorry, I've somehow only focused on the line 176. |
@swick since 1.19.0 is not out yet, can we get this change in? |
This merge request was merged 3 weeks ago. |
1.19.0 is out. This change was merged after that, and will be in the 1.19.1 development release and the 1.20.0 stable release. |
To check whenever specific scheme is supported by the host.